package testRankers;

import java.util.Arrays;

import org.junit.Test;

import vsvm.data.filter.ranking.AbstractRankingFilter;
import vsvm.data.filter.ranking.FisherScore;
import vsvm.data.model.AbstractDataModel;


public class FisherScoreTest extends AbstractRankerTest{

	@Test
	public void testScore() 
	{	
		AbstractRankingFilter ranker = new FisherScore();
		AbstractDataModel dataModel = getDataModel(mainPath + "data1", 0);
		ranker.setDataModel(dataModel);

		double[] m = {0.7037037037037037, 
					  0.7037037037037037, 
					  0.4444444444444445,
					  0,
					 };

		assertTrue(Arrays.equals(m, ranker.score()));
	}

}
